package  
{
	import net.flashpunk.World;
	import net.flashpunk.FP;
	/**
	 * ...
	 * @author Donatello
	 */
	public class IntermediaScene extends World
	{
		private var time:Number = 0.0;
		private var sig:World;
		
		public function IntermediaScene(text:String, sig:World) 
		{
			FP.screen.color = 0x000000;
			add(new Dialog(text,200,300,5,300));
			
			this.sig = sig;
		}
		
		override public function update():void
		{
			time += FP.elapsed;
			
			if (time > 6)
			{
				FP.world = sig;
				removeAll();
			}
			
			super.update();
		}
		
		
	}

}